package com.ruoyi.accountant.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class AccountDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AccountDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andAidIsNull() {
            addCriterion("aid is null");
            return (Criteria) this;
        }

        public Criteria andAidIsNotNull() {
            addCriterion("aid is not null");
            return (Criteria) this;
        }

        public Criteria andAidEqualTo(Long value) {
            addCriterion("aid =", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidNotEqualTo(Long value) {
            addCriterion("aid <>", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidGreaterThan(Long value) {
            addCriterion("aid >", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidGreaterThanOrEqualTo(Long value) {
            addCriterion("aid >=", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidLessThan(Long value) {
            addCriterion("aid <", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidLessThanOrEqualTo(Long value) {
            addCriterion("aid <=", value, "aid");
            return (Criteria) this;
        }

        public Criteria andAidIn(List<Long> values) {
            addCriterion("aid in", values, "aid");
            return (Criteria) this;
        }

        public Criteria andAidNotIn(List<Long> values) {
            addCriterion("aid not in", values, "aid");
            return (Criteria) this;
        }

        public Criteria andAidBetween(Long value1, Long value2) {
            addCriterion("aid between", value1, value2, "aid");
            return (Criteria) this;
        }

        public Criteria andAidNotBetween(Long value1, Long value2) {
            addCriterion("aid not between", value1, value2, "aid");
            return (Criteria) this;
        }

        public Criteria andDtypeIsNull() {
            addCriterion("dtype is null");
            return (Criteria) this;
        }

        public Criteria andDtypeIsNotNull() {
            addCriterion("dtype is not null");
            return (Criteria) this;
        }

        public Criteria andDtypeEqualTo(String value) {
            addCriterion("dtype =", value, "dtype");
            return (Criteria) this;
        }

        public Criteria andDtypeNotEqualTo(String value) {
            addCriterion("dtype <>", value, "dtype");
            return (Criteria) this;
        }

        public Criteria andDtypeGreaterThan(String value) {
            addCriterion("dtype >", value, "dtype");
            return (Criteria) this;
        }

        public Criteria andDtypeGreaterThanOrEqualTo(String value) {
            addCriterion("dtype >=", value, "dtype");
            return (Criteria) this;
        }

        public Criteria andDtypeLessThan(String value) {
            addCriterion("dtype <", value, "dtype");
            return (Criteria) this;
        }

        public Criteria andDtypeLessThanOrEqualTo(String value) {
            addCriterion("dtype <=", value, "dtype");
            return (Criteria) this;
        }

        public Criteria andDtypeLike(String value) {
            addCriterion("dtype like", value, "dtype");
            return (Criteria) this;
        }

        public Criteria andDtypeNotLike(String value) {
            addCriterion("dtype not like", value, "dtype");
            return (Criteria) this;
        }

        public Criteria andDtypeIn(List<String> values) {
            addCriterion("dtype in", values, "dtype");
            return (Criteria) this;
        }

        public Criteria andDtypeNotIn(List<String> values) {
            addCriterion("dtype not in", values, "dtype");
            return (Criteria) this;
        }

        public Criteria andDtypeBetween(String value1, String value2) {
            addCriterion("dtype between", value1, value2, "dtype");
            return (Criteria) this;
        }

        public Criteria andDtypeNotBetween(String value1, String value2) {
            addCriterion("dtype not between", value1, value2, "dtype");
            return (Criteria) this;
        }

        public Criteria andOutmoneyIsNull() {
            addCriterion("outmoney is null");
            return (Criteria) this;
        }

        public Criteria andOutmoneyIsNotNull() {
            addCriterion("outmoney is not null");
            return (Criteria) this;
        }

        public Criteria andOutmoneyEqualTo(BigDecimal value) {
            addCriterion("outmoney =", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyNotEqualTo(BigDecimal value) {
            addCriterion("outmoney <>", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyGreaterThan(BigDecimal value) {
            addCriterion("outmoney >", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("outmoney >=", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyLessThan(BigDecimal value) {
            addCriterion("outmoney <", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("outmoney <=", value, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyIn(List<BigDecimal> values) {
            addCriterion("outmoney in", values, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyNotIn(List<BigDecimal> values) {
            addCriterion("outmoney not in", values, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("outmoney between", value1, value2, "outmoney");
            return (Criteria) this;
        }

        public Criteria andOutmoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("outmoney not between", value1, value2, "outmoney");
            return (Criteria) this;
        }

        public Criteria andInmoneyIsNull() {
            addCriterion("inmoney is null");
            return (Criteria) this;
        }

        public Criteria andInmoneyIsNotNull() {
            addCriterion("inmoney is not null");
            return (Criteria) this;
        }

        public Criteria andInmoneyEqualTo(BigDecimal value) {
            addCriterion("inmoney =", value, "inmoney");
            return (Criteria) this;
        }

        public Criteria andInmoneyNotEqualTo(BigDecimal value) {
            addCriterion("inmoney <>", value, "inmoney");
            return (Criteria) this;
        }

        public Criteria andInmoneyGreaterThan(BigDecimal value) {
            addCriterion("inmoney >", value, "inmoney");
            return (Criteria) this;
        }

        public Criteria andInmoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("inmoney >=", value, "inmoney");
            return (Criteria) this;
        }

        public Criteria andInmoneyLessThan(BigDecimal value) {
            addCriterion("inmoney <", value, "inmoney");
            return (Criteria) this;
        }

        public Criteria andInmoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("inmoney <=", value, "inmoney");
            return (Criteria) this;
        }

        public Criteria andInmoneyIn(List<BigDecimal> values) {
            addCriterion("inmoney in", values, "inmoney");
            return (Criteria) this;
        }

        public Criteria andInmoneyNotIn(List<BigDecimal> values) {
            addCriterion("inmoney not in", values, "inmoney");
            return (Criteria) this;
        }

        public Criteria andInmoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("inmoney between", value1, value2, "inmoney");
            return (Criteria) this;
        }

        public Criteria andInmoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("inmoney not between", value1, value2, "inmoney");
            return (Criteria) this;
        }

        public Criteria andBalanceIsNull() {
            addCriterion("balance is null");
            return (Criteria) this;
        }

        public Criteria andBalanceIsNotNull() {
            addCriterion("balance is not null");
            return (Criteria) this;
        }

        public Criteria andBalanceEqualTo(BigDecimal value) {
            addCriterion("balance =", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceNotEqualTo(BigDecimal value) {
            addCriterion("balance <>", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceGreaterThan(BigDecimal value) {
            addCriterion("balance >", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("balance >=", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceLessThan(BigDecimal value) {
            addCriterion("balance <", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("balance <=", value, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceIn(List<BigDecimal> values) {
            addCriterion("balance in", values, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceNotIn(List<BigDecimal> values) {
            addCriterion("balance not in", values, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("balance between", value1, value2, "balance");
            return (Criteria) this;
        }

        public Criteria andBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("balance not between", value1, value2, "balance");
            return (Criteria) this;
        }

        public Criteria andCommentIsNull() {
            addCriterion("comment is null");
            return (Criteria) this;
        }

        public Criteria andCommentIsNotNull() {
            addCriterion("comment is not null");
            return (Criteria) this;
        }

        public Criteria andCommentEqualTo(String value) {
            addCriterion("comment =", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotEqualTo(String value) {
            addCriterion("comment <>", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentGreaterThan(String value) {
            addCriterion("comment >", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentGreaterThanOrEqualTo(String value) {
            addCriterion("comment >=", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLessThan(String value) {
            addCriterion("comment <", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLessThanOrEqualTo(String value) {
            addCriterion("comment <=", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentLike(String value) {
            addCriterion("comment like", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotLike(String value) {
            addCriterion("comment not like", value, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentIn(List<String> values) {
            addCriterion("comment in", values, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotIn(List<String> values) {
            addCriterion("comment not in", values, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentBetween(String value1, String value2) {
            addCriterion("comment between", value1, value2, "comment");
            return (Criteria) this;
        }

        public Criteria andCommentNotBetween(String value1, String value2) {
            addCriterion("comment not between", value1, value2, "comment");
            return (Criteria) this;
        }

        public Criteria andOfReasonIsNull() {
            addCriterion("of_reason is null");
            return (Criteria) this;
        }

        public Criteria andOfReasonIsNotNull() {
            addCriterion("of_reason is not null");
            return (Criteria) this;
        }

        public Criteria andOfReasonEqualTo(Long value) {
            addCriterion("of_reason =", value, "ofReason");
            return (Criteria) this;
        }

        public Criteria andOfReasonNotEqualTo(Long value) {
            addCriterion("of_reason <>", value, "ofReason");
            return (Criteria) this;
        }

        public Criteria andOfReasonGreaterThan(Long value) {
            addCriterion("of_reason >", value, "ofReason");
            return (Criteria) this;
        }

        public Criteria andOfReasonGreaterThanOrEqualTo(Long value) {
            addCriterion("of_reason >=", value, "ofReason");
            return (Criteria) this;
        }

        public Criteria andOfReasonLessThan(Long value) {
            addCriterion("of_reason <", value, "ofReason");
            return (Criteria) this;
        }

        public Criteria andOfReasonLessThanOrEqualTo(Long value) {
            addCriterion("of_reason <=", value, "ofReason");
            return (Criteria) this;
        }

        public Criteria andOfReasonIn(List<Long> values) {
            addCriterion("of_reason in", values, "ofReason");
            return (Criteria) this;
        }

        public Criteria andOfReasonNotIn(List<Long> values) {
            addCriterion("of_reason not in", values, "ofReason");
            return (Criteria) this;
        }

        public Criteria andOfReasonBetween(Long value1, Long value2) {
            addCriterion("of_reason between", value1, value2, "ofReason");
            return (Criteria) this;
        }

        public Criteria andOfReasonNotBetween(Long value1, Long value2) {
            addCriterion("of_reason not between", value1, value2, "ofReason");
            return (Criteria) this;
        }

        public Criteria andProofDateIsNull() {
            addCriterion("proof_date is null");
            return (Criteria) this;
        }

        public Criteria andProofDateIsNotNull() {
            addCriterion("proof_date is not null");
            return (Criteria) this;
        }

        public Criteria andProofDateEqualTo(Date value) {
            addCriterionForJDBCDate("proof_date =", value, "proofDate");
            return (Criteria) this;
        }

        public Criteria andProofDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("proof_date <>", value, "proofDate");
            return (Criteria) this;
        }

        public Criteria andProofDateGreaterThan(Date value) {
            addCriterionForJDBCDate("proof_date >", value, "proofDate");
            return (Criteria) this;
        }

        public Criteria andProofDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("proof_date >=", value, "proofDate");
            return (Criteria) this;
        }

        public Criteria andProofDateLessThan(Date value) {
            addCriterionForJDBCDate("proof_date <", value, "proofDate");
            return (Criteria) this;
        }

        public Criteria andProofDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("proof_date <=", value, "proofDate");
            return (Criteria) this;
        }

        public Criteria andProofDateIn(List<Date> values) {
            addCriterionForJDBCDate("proof_date in", values, "proofDate");
            return (Criteria) this;
        }

        public Criteria andProofDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("proof_date not in", values, "proofDate");
            return (Criteria) this;
        }

        public Criteria andProofDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("proof_date between", value1, value2, "proofDate");
            return (Criteria) this;
        }

        public Criteria andProofDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("proof_date not between", value1, value2, "proofDate");
            return (Criteria) this;
        }

        public Criteria andObjectIsNull() {
            addCriterion("object is null");
            return (Criteria) this;
        }

        public Criteria andObjectIsNotNull() {
            addCriterion("object is not null");
            return (Criteria) this;
        }

        public Criteria andObjectEqualTo(String value) {
            addCriterion("object =", value, "object");
            return (Criteria) this;
        }

        public Criteria andObjectNotEqualTo(String value) {
            addCriterion("object <>", value, "object");
            return (Criteria) this;
        }

        public Criteria andObjectGreaterThan(String value) {
            addCriterion("object >", value, "object");
            return (Criteria) this;
        }

        public Criteria andObjectGreaterThanOrEqualTo(String value) {
            addCriterion("object >=", value, "object");
            return (Criteria) this;
        }

        public Criteria andObjectLessThan(String value) {
            addCriterion("object <", value, "object");
            return (Criteria) this;
        }

        public Criteria andObjectLessThanOrEqualTo(String value) {
            addCriterion("object <=", value, "object");
            return (Criteria) this;
        }

        public Criteria andObjectLike(String value) {
            addCriterion("object like", value, "object");
            return (Criteria) this;
        }

        public Criteria andObjectNotLike(String value) {
            addCriterion("object not like", value, "object");
            return (Criteria) this;
        }

        public Criteria andObjectIn(List<String> values) {
            addCriterion("object in", values, "object");
            return (Criteria) this;
        }

        public Criteria andObjectNotIn(List<String> values) {
            addCriterion("object not in", values, "object");
            return (Criteria) this;
        }

        public Criteria andObjectBetween(String value1, String value2) {
            addCriterion("object between", value1, value2, "object");
            return (Criteria) this;
        }

        public Criteria andObjectNotBetween(String value1, String value2) {
            addCriterion("object not between", value1, value2, "object");
            return (Criteria) this;
        }

        public Criteria andTagIsNull() {
            addCriterion("tag is null");
            return (Criteria) this;
        }

        public Criteria andTagIsNotNull() {
            addCriterion("tag is not null");
            return (Criteria) this;
        }

        public Criteria andTagEqualTo(String value) {
            addCriterion("tag =", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagNotEqualTo(String value) {
            addCriterion("tag <>", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagGreaterThan(String value) {
            addCriterion("tag >", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagGreaterThanOrEqualTo(String value) {
            addCriterion("tag >=", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagLessThan(String value) {
            addCriterion("tag <", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagLessThanOrEqualTo(String value) {
            addCriterion("tag <=", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagLike(String value) {
            addCriterion("tag like", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagNotLike(String value) {
            addCriterion("tag not like", value, "tag");
            return (Criteria) this;
        }

        public Criteria andTagIn(List<String> values) {
            addCriterion("tag in", values, "tag");
            return (Criteria) this;
        }

        public Criteria andTagNotIn(List<String> values) {
            addCriterion("tag not in", values, "tag");
            return (Criteria) this;
        }

        public Criteria andTagBetween(String value1, String value2) {
            addCriterion("tag between", value1, value2, "tag");
            return (Criteria) this;
        }

        public Criteria andTagNotBetween(String value1, String value2) {
            addCriterion("tag not between", value1, value2, "tag");
            return (Criteria) this;
        }

        public Criteria andAttachmentIsNull() {
            addCriterion("attachment is null");
            return (Criteria) this;
        }

        public Criteria andAttachmentIsNotNull() {
            addCriterion("attachment is not null");
            return (Criteria) this;
        }

        public Criteria andAttachmentEqualTo(String value) {
            addCriterion("attachment =", value, "attachment");
            return (Criteria) this;
        }

        public Criteria andAttachmentNotEqualTo(String value) {
            addCriterion("attachment <>", value, "attachment");
            return (Criteria) this;
        }

        public Criteria andAttachmentGreaterThan(String value) {
            addCriterion("attachment >", value, "attachment");
            return (Criteria) this;
        }

        public Criteria andAttachmentGreaterThanOrEqualTo(String value) {
            addCriterion("attachment >=", value, "attachment");
            return (Criteria) this;
        }

        public Criteria andAttachmentLessThan(String value) {
            addCriterion("attachment <", value, "attachment");
            return (Criteria) this;
        }

        public Criteria andAttachmentLessThanOrEqualTo(String value) {
            addCriterion("attachment <=", value, "attachment");
            return (Criteria) this;
        }

        public Criteria andAttachmentLike(String value) {
            addCriterion("attachment like", value, "attachment");
            return (Criteria) this;
        }

        public Criteria andAttachmentNotLike(String value) {
            addCriterion("attachment not like", value, "attachment");
            return (Criteria) this;
        }

        public Criteria andAttachmentIn(List<String> values) {
            addCriterion("attachment in", values, "attachment");
            return (Criteria) this;
        }

        public Criteria andAttachmentNotIn(List<String> values) {
            addCriterion("attachment not in", values, "attachment");
            return (Criteria) this;
        }

        public Criteria andAttachmentBetween(String value1, String value2) {
            addCriterion("attachment between", value1, value2, "attachment");
            return (Criteria) this;
        }

        public Criteria andAttachmentNotBetween(String value1, String value2) {
            addCriterion("attachment not between", value1, value2, "attachment");
            return (Criteria) this;
        }

        public Criteria andOfAccountIsNull() {
            addCriterion("of_account is null");
            return (Criteria) this;
        }

        public Criteria andOfAccountIsNotNull() {
            addCriterion("of_account is not null");
            return (Criteria) this;
        }

        public Criteria andOfAccountEqualTo(Long value) {
            addCriterion("of_account =", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountNotEqualTo(Long value) {
            addCriterion("of_account <>", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountGreaterThan(Long value) {
            addCriterion("of_account >", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountGreaterThanOrEqualTo(Long value) {
            addCriterion("of_account >=", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountLessThan(Long value) {
            addCriterion("of_account <", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountLessThanOrEqualTo(Long value) {
            addCriterion("of_account <=", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountIn(List<Long> values) {
            addCriterion("of_account in", values, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountNotIn(List<Long> values) {
            addCriterion("of_account not in", values, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountBetween(Long value1, Long value2) {
            addCriterion("of_account between", value1, value2, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountNotBetween(Long value1, Long value2) {
            addCriterion("of_account not between", value1, value2, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNull() {
            addCriterion("deleted is null");
            return (Criteria) this;
        }

        public Criteria andDeletedIsNotNull() {
            addCriterion("deleted is not null");
            return (Criteria) this;
        }

        public Criteria andDeletedEqualTo(Integer value) {
            addCriterion("deleted =", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotEqualTo(Integer value) {
            addCriterion("deleted <>", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThan(Integer value) {
            addCriterion("deleted >", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedGreaterThanOrEqualTo(Integer value) {
            addCriterion("deleted >=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThan(Integer value) {
            addCriterion("deleted <", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedLessThanOrEqualTo(Integer value) {
            addCriterion("deleted <=", value, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedIn(List<Integer> values) {
            addCriterion("deleted in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotIn(List<Integer> values) {
            addCriterion("deleted not in", values, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedBetween(Integer value1, Integer value2) {
            addCriterion("deleted between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andDeletedNotBetween(Integer value1, Integer value2) {
            addCriterion("deleted not between", value1, value2, "deleted");
            return (Criteria) this;
        }

        public Criteria andOfDeviceIsNull() {
            addCriterion("of_device is null");
            return (Criteria) this;
        }

        public Criteria andOfDeviceIsNotNull() {
            addCriterion("of_device is not null");
            return (Criteria) this;
        }

        public Criteria andOfDeviceEqualTo(Long value) {
            addCriterion("of_device =", value, "ofDevice");
            return (Criteria) this;
        }

        public Criteria andOfDeviceNotEqualTo(Long value) {
            addCriterion("of_device <>", value, "ofDevice");
            return (Criteria) this;
        }

        public Criteria andOfDeviceGreaterThan(Long value) {
            addCriterion("of_device >", value, "ofDevice");
            return (Criteria) this;
        }

        public Criteria andOfDeviceGreaterThanOrEqualTo(Long value) {
            addCriterion("of_device >=", value, "ofDevice");
            return (Criteria) this;
        }

        public Criteria andOfDeviceLessThan(Long value) {
            addCriterion("of_device <", value, "ofDevice");
            return (Criteria) this;
        }

        public Criteria andOfDeviceLessThanOrEqualTo(Long value) {
            addCriterion("of_device <=", value, "ofDevice");
            return (Criteria) this;
        }

        public Criteria andOfDeviceIn(List<Long> values) {
            addCriterion("of_device in", values, "ofDevice");
            return (Criteria) this;
        }

        public Criteria andOfDeviceNotIn(List<Long> values) {
            addCriterion("of_device not in", values, "ofDevice");
            return (Criteria) this;
        }

        public Criteria andOfDeviceBetween(Long value1, Long value2) {
            addCriterion("of_device between", value1, value2, "ofDevice");
            return (Criteria) this;
        }

        public Criteria andOfDeviceNotBetween(Long value1, Long value2) {
            addCriterion("of_device not between", value1, value2, "ofDevice");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andTransactionDateIsNull() {
            addCriterion("transaction_date is null");
            return (Criteria) this;
        }

        public Criteria andTransactionDateIsNotNull() {
            addCriterion("transaction_date is not null");
            return (Criteria) this;
        }

        public Criteria andTransactionDateEqualTo(Date value) {
            addCriterionForJDBCDate("transaction_date =", value, "transactionDate");
            return (Criteria) this;
        }

        public Criteria andTransactionDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("transaction_date <>", value, "transactionDate");
            return (Criteria) this;
        }

        public Criteria andTransactionDateGreaterThan(Date value) {
            addCriterionForJDBCDate("transaction_date >", value, "transactionDate");
            return (Criteria) this;
        }

        public Criteria andTransactionDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("transaction_date >=", value, "transactionDate");
            return (Criteria) this;
        }

        public Criteria andTransactionDateLessThan(Date value) {
            addCriterionForJDBCDate("transaction_date <", value, "transactionDate");
            return (Criteria) this;
        }

        public Criteria andTransactionDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("transaction_date <=", value, "transactionDate");
            return (Criteria) this;
        }

        public Criteria andTransactionDateIn(List<Date> values) {
            addCriterionForJDBCDate("transaction_date in", values, "transactionDate");
            return (Criteria) this;
        }

        public Criteria andTransactionDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("transaction_date not in", values, "transactionDate");
            return (Criteria) this;
        }

        public Criteria andTransactionDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("transaction_date between", value1, value2, "transactionDate");
            return (Criteria) this;
        }

        public Criteria andTransactionDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("transaction_date not between", value1, value2, "transactionDate");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}